<h2><%= @title %></h2>
<div>
<% for repair_record in @records %>
<% content_tag :div, :style => "float:left;width:100%;border-bottom:thin solid gray;min-height:30px;" do %>
	<span style="float:left;width:140px;min-height:30px;border-right:thin dotted gray;">
		<%=h repair_record.customer_record.fname  %>
		<%=h repair_record.customer_record.lname  %>
		<br><%=h repair_record.customer_record.mobile  %>
	</span>
	<span style="float:left;width:60px;min-height:30px;border-right:thin dotted gray;"><% if repair_record.assigned_to  %><%= repair_record.assigned_to.login %><% else %>not assigned <% end %>
</span>		    
	<span style="float:left;width:500px;font-size:11px;border-right:thin dotted gray;">
		<% if repair_record.note %>
			<% if repair_record.note.length > 0 %>
				<%= sanitize repair_record.note  %>
			<% else %>
				no notes
			<% end %>
		<% else %>
			record never moved into new system
		<% end %>
	</span>
	<span style="float:left;width:50px;">
		<%= time_ago_in_words(repair_record.created_at) %>
	</span>
	<span style="float:left;width:100px;border-left:thin dotted gray;">
		<%= content_tag :span, repair_record.computer_serial  %>
	</span>
	<span style="float:right;height:30px;line-height:15px;border-left:thin dotted gray;font-size:9px;">
		<%= link_to "edit", "/repair_records/edit/#{repair_record.id}" %>
		<%= link_to 'Print Auth', {:action => "authorization_pdf", :id => repair_record.id} %>
		<%= link_to 'Print Conf', {:action => "confirmation_pdf", :id => repair_record.id} %>
	</span>
<% end %>
<% end %>
</div>
